export const deepClone = (targeObj) => {
    if (typeof targeObj !== 'object') return targeObj
    let result = targeObj.constructor === Array ? [] : {}
    for (const key in targeObj) {
        if (targeObj[key] && targeObj.hasOwnProperty(key)) {
            if (typeof targeObj[key] === 'object') {
                result[key] = targeObj[key].constructor === Array ? [] : {}
                result[key] = deepClone(targeObj[key])
            } else {
                result[key] = targeObj[key]
            }
        }
    }
    return result
}